package shop.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import shop.pojo.StorageRecord;

import java.util.List;

@Mapper
public interface StorageRecordMapper {


    Integer getStorageRecordCount(@Param("queryGoodsName") String queryGoodsName,@Param("querySupplierId") String querySupplierId,@Param("queryPayStatus") String queryPayStatus);

    List<StorageRecord> getStorageRecordList(@Param("queryGoodsName") String queryGoodsName,@Param("querySupplierId") String querySupplierId,@Param("queryPayStatus") String queryPayStatus,@Param("pageIndex") Integer pageIndex,@Param("pageSize") int pageSize);

    StorageRecord getStorageRecordDetail(Integer storageRecordId);

    int update(StorageRecord storageRecord);

    Integer delete(Integer storageRecordId);

    Integer add(StorageRecord storageRecord);
}
